package com.hzgj.bcl.soa.rpc.client;

import com.hzgj.bcl.soa.config.MethodDef;
import com.hzgj.bcl.soa.config.ReferenceDef;

import lombok.Getter;
import lombok.ToString;

@ToString
@Getter
public class RequestOptions {

    private MethodDef methodDef;
    private ReferenceDef referenceDef;
    private String source;
    private long begin;

    public RequestOptions referenceDef(ReferenceDef referenceDef) {
        this.referenceDef = referenceDef;
        return this;
    }

    public RequestOptions begin(long begin) {
        this.begin = begin;
        return this;
    }

    public RequestOptions methodDef(MethodDef methodDef) {
        this.methodDef = methodDef;
        return this;
    }

    public RequestOptions source(String source) {
        this.source = source;
        return this;
    }

}
